#include "track.h"

namespace plok
{

    Track::Track(std::string title) :
            m_title(title)
    {
    }

    Track::Track(std::string title,int duration, plok::Genre *genre, plok::Artist *artist, plok::Album *album) :
            m_title(title), m_duration(duration),m_genre(genre),m_artist(artist),m_album(album)
    {
    }

    void Track::set_title(std::string title)
    {
        this->m_title = title;
    }

    void Track::set_duration(int duration)
    {
        this->m_duration = duration;
    }

    void Track::set_genre(Genre* genre)
    {
        this->m_genre = genre;
    }

    void Track::set_artist(Artist * artist)
    {
        this->m_artist = artist;
    }

    void Track::set_album(Album* album)
    {
        this->m_album = album;
    }

    std::string Track::get_title()
    {
        return this->m_title;
    }

    int Track::get_duration(){
        return this->m_duration;
    }

    Genre * Track::get_genre()
    {
        return this->m_genre;
    }

    Artist * Track::get_artist()
    {
        return this->m_artist;
    }

    Album * Track::get_album()
    {
        return this->m_album;
    }


}
